#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <vlc/vlc.h>

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT
    
public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();
    void play();

public slots:
    void updateInterface();

private:
    void log(QString msg);
    const float SliderResolution = 10000;


private:
    Ui::MainWindow *ui;
    libvlc_instance_t* _vlcinstance;
    libvlc_media_player_t *_mp;
    libvlc_media_t *_m;
    QTimer* poller;
};

#endif // MAINWINDOW_H
